<%@page import="java.util.Date"%>
<%@ page import ="java.util.Enumeration;" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	<jsp:useBean id="message1" class="Learn.Message"></jsp:useBean>
	Form:<jsp:getProperty property="form" name="message1"/>
	<jsp:setProperty property="to" name="message1" value="fhaukh"/></br>
	To:<jsp:getProperty property="to" name="message1" /></br>
	At:<jsp:getProperty property="at" name="message1"/></br>
	Message:<jsp:getProperty property="message" name="message1"/></br>
	<%!
	int  count = 0;
		public  void jspInit(){
			System.out.println("init");
	} 
	
	public  void jspDestroy(){
		System.out.println("destory");
	}
	%>
	<h1>before jsp forward </h1>
	<table>
		<tr><th>f1</th><th>gg1</th></tr>
		现在时间是:<%=new Date() %>
		<%@ include file="test2.jsp" %>
		<%-- <jsp:forward page="test2.jsp"></jsp:forward> --%>
		<%-- <jsp:include page="test2.jsp"></jsp:include> --%>
		<tr><th>f2</th><th>gg2</th></tr>
	</table>
	
	<% 
	Enumeration<String> enumNames = request.getParameterNames();
	while(enumNames.hasMoreElements()){
		String name = enumNames.nextElement();
		String pv = request.getParameter(name);
		out.println("<p><b>"+name +"</b>"+pv+"</p>");
	}
			%>
	</body>
</html>